# -*- coding: utf-8 -*-
import os
import sys

from PyQt5.QtCore import QTranslator
from PyQt5.QtWidgets import QApplication

from app.Main import Main
from config import Const

if __name__ == '__main__':
    # 配置web调试
    os.putenv("QTWEBENGINE_REMOTE_DEBUGGING", "9223")
    # 实例化qt
    app = QApplication(sys.argv)
    # 设置语言包
    translator = QTranslator()
    translator.load(Const.BASE_QM)
    app.installTranslator(translator)
    # 渲染程序
    m = Main()
    m.renderApp()
    m.show()
    sys.exit(app.exec_())
